<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="./css/style.css" rel="stylesheet" type="text/css" />
<script src="./js/jquery.js"></script>
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<title>{$sys[webname]}</title>
</head>
<body>
<div class="head">
    <p class="p1">{$sys[webname]}</p>
    <p class="p2"><span></span><a href="/" target="_blank">查看网站</a><a href="./">后台首页</a><a href="javascript:" onclick="logout()">退出系统</a></p>	
</div>
<div class="left">
	<div class="auto">
	{if($level || $power['spgl'])}
	<div class="left1">
		<p class="bt p1">商品管理</p>
		<ul>
			{if($level || $power['tjsp'])}
			<li><a href="goodsadd.php" target="main">添加商品</a></li>			
			<li><a href="goodslist.php" target="main">商品列表</a></li>
			{/if}
			{if($level || $power['spfl'])}
			<li><a href="catogry.php" target="main">商品分类</a></li>
			{/if}
			{if($level || $power['sxfl'])}
			<li><a href="taglist.php" target="main">属性分类</a></li>
			{/if}
		</ul>
	</div>
	{/if}	
	{if($level || $power['scdd'])}
	<div class="left1">
		<p class="bt p2">置换订单</p>
		<ul>
			<li><a href="orderlist.php?cplx=2&state=1" target="main">待确认</a></li>
			<li><a href="orderlist.php?cplx=2&state=2" target="main">待发货</a></li>
			<li><a href="orderlist.php?cplx=2&state=3" target="main">已发货</a></li>
			<li><a href="orderlist.php?cplx=2&state=4" target="main">已完成</a></li>
			<li><a href="orderlist.php?cplx=2" target="main">全部订单</a></li>		
		</ul>
	</div>
	{/if}
	{if($level || $power['scdd'])}
	<div class="left1">
		<p class="bt p2">零售订单</p>
		<ul>
			<li><a href="orderlist.php?cplx=3&state=2" target="main">待发货</a></li>
			<li><a href="orderlist.php?cplx=3&state=3" target="main">已发货</a></li>
			<li><a href="orderlist.php?cplx=3&state=4" target="main">已完成</a></li>
			<li><a href="orderlist.php?cplx=3" target="main">全部订单</a></li>		
		</ul>
	</div>
	{/if}
	
	{if($level || $power['hygl'])}
	<div class="left1">
		<p class="bt p3">会员管理</p>
		<ul>
			{if($level || $power['hylb'])}
			<li><a href="userlist.php" target="main">会员列表</a></li>
			{/if}									
			{if($level || $power['lylb'])}			
			<li><a href="messagelist.php" target="main">留言列表</a></li>
			{/if}			
		</ul>
	</div>
	{/if}
	{if($level || $power['qydl'])}
	<div class="left1">
		<p class="bt p2">区域代理</p>
		<ul>
			<li><a href="agentadd.php" target="main">代理添加</a></li>					
			<li><a href="agentlist.php" target="main">代理列表</a></li>					
			<li><a href="agentrecord.php" target="main">变更记录</a></li>					
		</ul>
	</div>
	{/if}
	{if($level || $power['cwgl'])}
	<div class="left1">
		<p class="bt p4">财务管理</p>
		<ul>
			{if($level || $power['mrtj'])}
            <li><a href="tjlist.php" target="main">每日统计</a></li>
            {/if}
			{if($level || $power['cwjl'])}
			<li><a href="record_ye_list.php" target="main">财务记录</a></li>
			{/if}
            {if($level || $power['jjjl'])}
            <li><a href="cashlist.php" target="main">奖金记录</a></li>
            {/if}
			{if($level || $power['gdfh'])}
            <li><a href="fenhong.php" target="main">每日分红</a></li>
            {/if}			
			{if($level || $power['txjl'])}	
			<li><a href="tixianlist.php" target="main">提现记录</a></li>
			{/if}
			{if($level || $power['hzjl'])}	
			<li><a href="hzlist.php" target="main">互转记录</a></li>
			{/if}
			{if($level || $power['hycz'])}	
			<li><a href="cashcz.php" target="main">会员充值</a></li>
			{/if}
			
		</ul>
	</div>
	{/if}
	
	{if($level || $power['gggl'])}
	<div class="left1">
		<p class="bt p5">公告管理</p>
		<ul>
			<li><a href="info.php" target="main">添加公告</a></li>
			<li><a href="infolist.php" target="main">公告列表</a></li>
		</ul>
	</div>
	{/if}
	{if($level && false)}
	<div class="left1">
		<p class="bt p6">管理员管理</p>
		<ul>
			<li><a href="manageradd.php" target="main">添加管理员</a></li>
			<li><a href="managerlist.php" target="main">管理员列表</a></li>
		</ul>
	</div>
	{/if}
	<div class="left1">
		<p class="bt p7">系统管理</p>
		<ul>
			<li><a href="xgpass.php" target="main">修改密码</a></li>
			{if($level || $power['hycz'])}
			<li><a href="xgpass1.php" target="main">修改充值密码</a></li>
			{/if}
			{if($level || $power['lbtsz'])}
			<li><a href="lunbo.php" target="main">轮播图设置</a></li>
			{/if}
			{if($level)}
			<li><a href="setting.php" target="main">系统设置</a></li>
			{/if}
			
		</ul>
	</div>
	</div>
</div>
<script>
	$(".left1 ul").hide();
	$(".left1 p").click(function(){
		$(".left1 ul").hide();
	  	$(this).next("ul").toggle();
	});
	function logout(){
		$.ajax({
			type:"post",
			dataType:"json",
			url:"/Moudel.php?m=m&a=logout",
			success:function(d){
				if(d[0]==0){
					alert(d[1]);
				}
				else{
					alert(d[1]);
					window.location.href='./login.php';
				}
			}
		});
	}
	
</script>
{if($msg)}
<iframe id="right" width="100%" height="95" src="userlist.php" name="main"></iframe>
{else}
<iframe id="right" width="100%" height="95" src="main.php" name="main"></iframe>
{/if}
</body>
</html>